package com.kuaimacode.kframework.enums;

import lombok.Getter;

/**
 * @author qinyong
 * @Title:
 * @Package com.kuaimacode.kframework.enums
 * @Description: created by IntelliJ IDEA
 * @date 2019-03-24 10:39
 */
@Getter
public enum YesOrNoEnum {
    /**
     *
     */
    YES((byte) 1, "是"),
    NO((byte) 0, "否"),
    ;

    private byte value;
    private String desc;

    YesOrNoEnum(byte value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public int getIntValue() {
        return Byte.valueOf(this.value).intValue();
    }
}
